package md.mru.backend.core.repositories;

import md.mru.backend.core.domains.administration.FunctionClassification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author sergiu.marin
 * @since 01.04.2014
 */
public interface FunctionClassificationRepository extends JpaRepository<FunctionClassification, Long> {

    @Query("SELECT fc FROM FunctionClassification fc order by fc.position, fc.groupClassification.id, fc.name")
    public List<FunctionClassification> getFunctionClassifications();

}
